package kr.co.doriclassic.dataEx;

public class StackTest {
	public static void main(String[] args) {
		int size=3;
		Stack stack = new Stack(size);
		stack.push("a");
		stack.prnStack();
		stack.push("b");
		stack.prnStack();
		stack.push("c");
		stack.prnStack();
		
		
		for (int i = 0; i < size; i++) {
			System.out.println("pop"+stack.pop());
			stack.prnStack();
		}
		

		for (int i = 97; i < size+98; i++) {
			stack.push(String.format("%s", i));
			stack.prnStack();
		}
	}
}
